<?php
?>

<h3>Welcome to Cero Repository, <?php echo ($nickname); ?> !</h3>
<br />
You are
<?php
switch($rights)
  {
  case 0:
    echo(' a Visitor');
    break;
  case 1:
    echo(' a User');
    break;
  case 2:
    echo(' a Moderator');
    break;
   case 3:
    echo(' a Super-Moderator');
    break;
   case 4:
    echo(' an Admin');
    break;
  }
?>
<br />
<?php if($rights>=3): ?>
<br />
<div id="moderation-list">This will be the moderation list</div>
<br/>
<div id="article-list">
	<img src="<?= base_url();?>img/article.png" alt="Articles list"/>
	<a href="#" onclick="update_content('<?php echo site_url('article/userarticlelist/'.$user_id.'/'); ?>');">List of your articles</a>
	<img src="<?= base_url();?>img/article_add.png" alt="Add article"/>
	<a href="#" onclick="update_content('<?php echo site_url("article/add/"); ?>');">Add an article</a>
</div>
<?php endif; ?>

<br />
<img src="<?= base_url();?>img/profile_edit.png" alt="Edit profile"/>
<a href="#" onclick="update_content('<?php echo site_url("user/edit/".$user_id); ?>');">Edit your profile</a>

<br /><br />
<div id="package-list"><?php if (count($pkglist)) $this->load->view('package/list', $pkglist); ?></div>
